package com.cgly.medical.mapper;

import com.cgly.medical.entity.CompanyPolicyEntity;
import com.cgly.medical.model.CompanyPolicyModel;
import com.cgly.medical.param.CompanyPolicyParam;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * @author 黄浩然
 */
public interface CompanyPolicyMapper {

    //查询所有医药公司政策
    List<CompanyPolicyModel> getAllCompanyPolicy(CompanyPolicyParam param);

    //添加
    int saveCompanyPolicy(CompanyPolicyEntity entity);

    //按id查询
    CompanyPolicyModel getCompanyPolicyById(Long id);

    //修改
    int updateCompanyPolicy(CompanyPolicyEntity entity);

    //删除
    int deleteCompanyPolicy(Long id);

    //按公司id删除
    int deleteCompanyPolicyByCompanyId(Long companyId);
}
